import {Injectable} from '@angular/core';
import {HttpUtilService} from "../../../services/http/http-util.service";
import {environment} from "../../../../environments/environment";
import {Observable} from "rxjs";

@Injectable({
  providedIn: 'root'
})
export class ImageService {

  private prefix =  environment.serverName.document+"/"

  constructor(private http: HttpUtilService) {
  }

  deleteById(id: string): Observable<void> {
    return this.http.post(this.prefix + "document-delete/image/"+id, undefined, true)
  }
}
